package STUDENT.TRINHQUANGXUANDUC.OPPS.LOGIN;

import java.util.Scanner;

public class Views {

	public static void main(String[] args) {
		Controllers c_obj = new Controllers();
		UserObject obj = new UserObject();
		String value;
		Scanner sc = new Scanner(System.in);
		do {
			System.out.println("Xin moi nhap Username:");
			value = sc.nextLine();
			obj.setUsername(value);
		} while (value.isEmpty());
		sc = new Scanner(System.in);
		do {
			System.out.println("Xin moi nhap Password:");
			value = sc.nextLine();
			obj.setPassword(value);
		} while (value.isEmpty());
		if (c_obj.CheckUserInfo(obj)) {
			System.out.println("Ban da dang nhap thanh cong =)))");
		} else {
			System.out.println("Rat tiec ban vui long kiem tra lai thong tin");
		}
	}
}
